//
//  HLTimeFlowLayout.m
//  NewKY
//
//  Created by 罗浩林 on 16/11/14.
//  Copyright © 2016年 Dee. All rights reserved.
//


#define  HLSCREENWIDTH  [UIScreen mainScreen].bounds.size.width

#import "HLTimeFlowLayout.h"

@implementation HLTimeFlowLayout


/*---cell布局自动调用---*/
-(void)prepareLayout{
    
    //计算itemsize
    CGFloat itemW = (HLSCREENWIDTH - 10)/8;
    
    CGFloat itemH = (self.collectionView.bounds.size.height - 8)/4;
    
    self.itemSize = CGSizeMake(itemW, itemH);
    
    self.minimumLineSpacing = 1;
    self.minimumInteritemSpacing = 1;
    
    self.sectionInset = UIEdgeInsetsMake(1, 0, 1, 0);
}

@end
